package com.darren.archive.service.impl;

import com.darren.archive.dao.CityDao;
import com.darren.archive.entity.City;
import com.darren.archive.service.CityService;
import com.darren.framework.service.impl.GenericServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <pre>
 * *********************************************
 * Copyright DARREN
 * All rights reserved.
 * Description: TODO(description)
 * HISTORY:
 * *********************************************
 *  Version		Date		Author	   		Desc	
 *   v1.0       2018-05-21  Darren Zhou    Create

 * *********************************************
 * </pre>
 */

@Service
public class CityServiceImpl extends GenericServiceImpl<City,Long> implements CityService {

    @Resource
    private CityDao cityDao;

    @Override
    public List<City> findCitiesByProvinceCode(String provinceCode) {
        return cityDao.findCitiesByProvinceCode(provinceCode);
    }
}
